package com.his.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.his.entity.dto.Disease;
import com.his.entity.dto.MedicalRecord;
import com.his.entity.po.DiseasePO;
import com.his.entity.vo.DiseaseVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiseaseMapper extends BaseMapper<Disease> {

    /**
     * 根据挂号id查询诊断信息
     *
     * @param medicalRecord@return
     */
    List<DiseaseVO> selectDiseaseByRegisterId(MedicalRecord medicalRecord);


    /**
     * 删除中间表数据
     *
     * @param diseaseId
     */
    void deleteMiddle(@Param("diseaseId") Long diseaseId);
}
